<h1>
	<span class="action-span">
		<a href="./index.php?c=admin&a=add">添加管理员</a>
	</span>	
	<span id="search_id" class="action-span1">管理员列表 </span>
	<div style="clear:both"></div>
</h1>


<div class="form-div">
  <form action="" name="searchForm">
  	<input type="hidden" name="c" value="user">
  	<input type="hidden" name="a" value="index">
    <img src="./public/images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />    
     用户名 <input type="text" name="username" size="15" value="<?=$username?>" />
  <input type="submit" value=" 搜索 " class="button" />
  </form>
</div>



<!-- 用户列表 -->

  <!-- start user list -->
<div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th>ID</th>
    <th>用户名</th> 
    <?php if($super){?>          
    <th>操作</th>    
    <?php }?>
  </tr>
  <?php 
  	if($adminlist){
	foreach($adminlist as $k=>$user){
?>
  <tr>
    <td><?=$user['id']?></td>
    <td align="center"><?=$user['username']?></td>
    <?php if($super){?>            
    <td align="center">
      <a href="./index.php?c=admin&a=editother&id=<?=$user['id']?>">编辑</a> 
      <a href="javascript:if(confirm('你确定要删除该用户么？')){window.location = './index.php?c=admin&a=del&id=<?=$user['id']?>';}">删除</a>          
     </td>
     <?php }?>
  </tr>
  <?php }}?>
  </table>
<!-- end goods list -->

<!-- 分页 -->
<?php if($page){?>
<table id="page-table" cellspacing="0">
  <tr>
    <td align="right" nowrap="true"><?=$page?></td>
  </tr>
</table>
<?php }?>
</div>